package com.oa.system.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 申请审批表
 * </p>
 *
 * @author syb123
 * @since 2019-01-29
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_apply_approval")
@ApiModel(value = "申请审批表")
public class ApplyApproval extends Model<ApplyApproval> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "申请id")
    private String applyId;

    @ApiModelProperty(value = "审批流程id")
    private String approvalProcessId;

    @ApiModelProperty(value = "申请名称")
    private String applyApprovalName;

    @ApiModelProperty(value = "当前节点方案")
    private Long approvalPlanId;

    @ApiModelProperty(value = "申请人")
    private String approvalUserId;

    @ApiModelProperty("当前审批节点")
    private Long approvalNodeId;

    @ApiModelProperty("当前状态 １-进行中 2-未通过")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}